﻿/*
 * Created by SharpDevelop.
 * User: Михаил
 * Date: 08.12.2014
 * Time: 20:14
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;
using System.Data;
using System.Windows.Forms;

namespace Invent
{
	/// <summary>
	/// Class with program entry point.
	/// </summary>
	internal sealed class Program
	{
		/// <summary>
		/// Program entry point.
		/// </summary>
		[STAThread]
		private static void Main(string[] args)
		{
			using(var db = new DatabaseInvent())
			{
				db.load(@"database.xml");
				//db.newDevice("000","QWER",Guid.Empty);
				var results = from myRow in db.Places.AsEnumerable() where myRow.Field<Guid>("ParentPlaceUID") == Guid.Empty select myRow;
				//db.createStandardPlace();
				Application.EnableVisualStyles();
				Application.SetCompatibleTextRenderingDefault(false);
				Application.Run(new MainForm(db));
			}
		}
		
	}
}
